home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Visual Basic 5.0 (2nd Edition) / Hardcore Visual Basic 5.0 - Second Edition (1997)(Microsoft Press).iso / Source / WinTlb / OAOBJ.IDL < prev    next >
Text File  |  1997-04-11  |  2KB  |  75 lines

  1. // Interfaces from oaidl.idl and objidl.idl
  2.  
  3. [    uuid(00000002-0000-0000-C000-000000000046),
  4.     odl,
  5.     helpstring("Visual Basic version of IMalloc interface")
  6. ]
  7.  
  8. interface IVBMalloc : IUnknown {
  9.  
  10.     long Alloc([in] long cb);
  11.  
  12.     long Realloc([in] void *pv, [in] long cb);
  13.  
  14.     void Free([in] long pv);
  15.  
  16.     long GetSize([in] long pv);
  17.  
  18.     int DidAlloc(long pv);
  19.  
  20.     void HeapMinimize(void);
  21. }
  22. typedef IVBMalloc *LPMALLOC;
  23.  
  24.  
  25. [    uuid(00020404-0000-0000-C000-000000000046),
  26.     odl,
  27.     helpstring("Visual Basic version of IEnumVARIANT interface")
  28. ]
  29. interface IVBEnumVARIANT : IUnknown {
  30.  
  31.     HRESULT Next([in] long celt,
  32.                  [in, out] VARIANT *rgvar,
  33.                  [in] long pceltFetched);
  34.  
  35.     HRESULT Skip([in] long celt);
  36.  
  37.     HRESULT Reset();
  38.  
  39.     HRESULT Clone([in, out] IVBEnumVARIANT** ppenum);
  40.  
  41. }
  42.  
  43. [    uuid(0000010c-0000-0000-C000-000000000046),
  44.     odl,
  45.     helpstring("Visual Basic version of IEnumVARIANT IPersist")
  46. ]
  47. interface IVBPersist : IUnknown {
  48.  
  49.     HRESULT GetClassID([in, out] CLSID * pClassID
  50.     );
  51.  
  52. }
  53.  
  54. [    uuid(0000010b-0000-0000-C000-000000000046),
  55.     odl,
  56.     helpstring("Visual Basic version of IEnumVARIANT IPersistFile")
  57. ]
  58. interface IVBPersistFile : IVBPersist {
  59.  
  60.     [ helpstring("Checks for changes since last file write") ]
  61.     HRESULT IsDirty();
  62.  
  63.     [ helpstring("Opens the specified file and initializes the object from its contents") ]
  64.     HRESULT Load([in] LPCOLESTR pszFileName, [in] DWORD dwMode);
  65.  
  66.     [ helpstring("Saves the object into the specified file") ]
  67.     HRESULT Save([in] LPCOLESTR pszFileName, [in] BOOL fRemember);
  68.  
  69.     [ helpstring("Notifies the object that it can revert from NoScribble mode to Normal mode") ]
  70.     HRESULT SaveCompleted([in] LPCOLESTR pszFileName);
  71.  
  72.     [ helpstring("Gets the current name of the file associated with the object") ]
  73.     HRESULT GetCurFile([in, out] LPOLESTR *ppszFileName);
  74. }
  75.